#include "stdafx.h"
#include "view\IView.h"
#include "presenter\Presenter.h"

IView::IView(Presenter* presenter) {
  presenter_ = presenter;
  presenter_->RegisterView(this);
}

void IView::RaiseEvent() {
  presenter_->Notify();
}

void IView::set_presenter(Presenter *presenter) {
  presenter_ = presenter;
}